package ml;

import java.util.ArrayList;
import java.util.StringTokenizer;

public class SampleData {
	private String m_date;
	private String m_time;

	private double m_price;
	private ArrayList<Double> m_feature;

	public SampleData(String str) {
		StringTokenizer token = new StringTokenizer(str);
		m_date = token.nextToken();
		m_time = token.nextToken();

		m_price = Double.valueOf(token.nextToken());

		m_feature = new ArrayList<Double>();
		m_feature.add(m_price);
		double ori_feature = 0;
		while (token.hasMoreTokens()) {
			ori_feature = Double.valueOf(token.nextToken());
			m_feature.add(m_price - ori_feature);
			m_feature.add(ori_feature);
		}
	}

	public String get_date() {
		return m_date;
	}

	public String get_time() {
		return m_time;
	}

	public double get_price() {
		return m_price;
	}

	public ArrayList<Double> get_feature() {
		return m_feature;
	}
}
